#include "dkglBillboard.h"
#include "dkglGrid.h"
#include "dkglMesh.h"

namespace DKGL
{
	class BillboardImpl
	{
	public:

		BillboardImpl(const String&, float width, float height)
		{
			try
			{
				Arguments args;

				args.push_back(width);
				args.push_back(height);
				args.push_back(1);		// 
				args.push_back(1);

				_gridPtr = MeshFactory::instance().create("GRID", name, args);
			}
			catch(...)
			{
				assert(0);
			}
		}

		~BillboardImpl()
		{
		}

		MeshPtr _gridPtr;
	};

	Billboard::Billboard(const String& name, float width, float height):
		_impl(new BillboardImpl(name, width, height)
	{

	}
}